package com.zhhl.util;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
import org.apache.log4j.Logger;
import org.quartz.Calendar;

public class TradeDayCalendar
{
  private static Logger logger = Logger.getLogger(TradeDayCalendar.class);

  public static String DEFAULT_DATE_FROMART = "yyyy-MM-dd";

  private String dateFormat = DEFAULT_DATE_FROMART;

  public String getDateFormat() {
    return this.dateFormat;
  }

  public void setDateFormat(String dateFormat)
  {
    this.dateFormat = dateFormat;
  }

  public TradeDayCalendar()
  {
  }

  public TradeDayCalendar(Calendar paramCalendar)
  {
  }

  public TradeDayCalendar(TimeZone paramTimeZone)
  {
  }

  public TradeDayCalendar(Calendar paramCalendar, TimeZone paramTimeZone)
  {
  }

  public TradeDayCalendar(String stringDates)
  {
    this(null, stringDates);
  }

  public TradeDayCalendar(Calendar paramCalendar, String paramString)
  {
  }

  private Date[] getDatesFromStrings(String[] stringDatesArray)
    throws ParseException
  {
    if ((stringDatesArray == null) || (stringDatesArray.length == 0))
      return null;
    Date[] dates = new Date[stringDatesArray.length];
    for (int i = 0; i < stringDatesArray.length; i++) {
      String stringDate = stringDatesArray[i];
      SimpleDateFormat simpleDateFormat = new SimpleDateFormat(this.dateFormat);
      dates[i] = simpleDateFormat.parse(stringDate);
    }
    return dates;
  }

  private void addExcludedDates(Date[] paramArrayOfDate)
  {
    throw new Error("Unresolved compilation problem: \n\tThe method addExcludedDate(Date) is undefined for the type TradeDayCalendar\n");
  }
}